package com.runewbie.pafcmall.search.feign;

import com.runewbie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: li_jian
 * @version: 1.0
 * @date: 2020/12/24 23:51
 * @description：
 */
@FeignClient("pafcmall-product")
public interface ProductFeignService {

    /**
     * 信息：查询属性详情
     * @param attrId
     * @return
     */
    @GetMapping("product/attr/info/{attrId}")
    R getAttrIdInfo(@PathVariable("attrId") Long attrId);

    /**
     * 获取品牌信息
     * @param brandIds
     * @return
     */
    @GetMapping("/infos")
    R barndInfo(@RequestParam("brandIds") List<Long> brandIds);
}
